import request from '@/utils/request'

/**
 *
 * @param {data} 入参
 * @abstract 管理员增删改查接口
 */
export function addSignupsAjax(data) {
  return request({
    url: '/admin/rddSignups',
    method: 'post',
    headers: { "Content-Type": "multipart/form-data" },
    data: data
  })
}

export function updateSignupsAjax(data) {
  return request({
    url: '/admin/rddSignups/' + data.id,
    method: 'put',
    data: { ...data }
  })
}

export function getSignupsAjax(data) {
    return request({
      url: '/admin/rddSignups/' + data.id,
      method: 'get',
      params: { ...data }
    })
  }

export function fetchSignupsAjax(data) {
  return request({
    url: '/admin/rddSignups',
    method: 'get',
    params: { ...data }
  })
}

export function delSignupsAjax(data) {
  return request({
    url: '/admin/rddSignups/' + data.id,
    method: 'delete'
  })
}

// 加盟申请列表
export function rddStoreAskList(query) {
    return request({
        url: '/admin/rddStoreAsk',
        method: 'get',
        params: query
    })
}


